﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011E9 RID: 4585
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StageMergedInfo : IMessage<StageMergedInfo>, IMessage, IEquatable<StageMergedInfo>, IDeepCloneable<StageMergedInfo>, IBufferMessage
	{
		// Token: 0x17003A0E RID: 14862
		// (get) Token: 0x0600CD5E RID: 52574 RVA: 0x00229391 File Offset: 0x00227591
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StageMergedInfo> Parser
		{
			get
			{
				return StageMergedInfo._parser;
			}
		}

		// Token: 0x17003A0F RID: 14863
		// (get) Token: 0x0600CD5F RID: 52575 RVA: 0x00229398 File Offset: 0x00227598
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StageMergedInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A10 RID: 14864
		// (get) Token: 0x0600CD60 RID: 52576 RVA: 0x002293AA File Offset: 0x002275AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StageMergedInfo.Descriptor;
			}
		}

		// Token: 0x0600CD61 RID: 52577 RVA: 0x002293B1 File Offset: 0x002275B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StageMergedInfo()
		{
		}

		// Token: 0x0600CD62 RID: 52578 RVA: 0x002293C4 File Offset: 0x002275C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StageMergedInfo(StageMergedInfo other) : this()
		{
			this.aNLGJNNILPP_ = other.aNLGJNNILPP_;
			this.levelId_ = other.levelId_;
			this.stagePeriods_ = other.stagePeriods_.Clone();
			this.bINGAPCIEFO_ = other.bINGAPCIEFO_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CD63 RID: 52579 RVA: 0x0022941D File Offset: 0x0022761D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StageMergedInfo Clone()
		{
			return new StageMergedInfo(this);
		}

		// Token: 0x17003A11 RID: 14865
		// (get) Token: 0x0600CD64 RID: 52580 RVA: 0x00229425 File Offset: 0x00227625
		// (set) Token: 0x0600CD65 RID: 52581 RVA: 0x0022942D File Offset: 0x0022762D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool ANLGJNNILPP
		{
			get
			{
				return this.aNLGJNNILPP_;
			}
			set
			{
				this.aNLGJNNILPP_ = value;
			}
		}

		// Token: 0x17003A12 RID: 14866
		// (get) Token: 0x0600CD66 RID: 52582 RVA: 0x00229436 File Offset: 0x00227636
		// (set) Token: 0x0600CD67 RID: 52583 RVA: 0x0022943E File Offset: 0x0022763E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LevelId
		{
			get
			{
				return this.levelId_;
			}
			set
			{
				this.levelId_ = value;
			}
		}

		// Token: 0x17003A13 RID: 14867
		// (get) Token: 0x0600CD68 RID: 52584 RVA: 0x00229447 File Offset: 0x00227647
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> StagePeriods
		{
			get
			{
				return this.stagePeriods_;
			}
		}

		// Token: 0x17003A14 RID: 14868
		// (get) Token: 0x0600CD69 RID: 52585 RVA: 0x0022944F File Offset: 0x0022764F
		// (set) Token: 0x0600CD6A RID: 52586 RVA: 0x00229457 File Offset: 0x00227657
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool BINGAPCIEFO
		{
			get
			{
				return this.bINGAPCIEFO_;
			}
			set
			{
				this.bINGAPCIEFO_ = value;
			}
		}

		// Token: 0x0600CD6B RID: 52587 RVA: 0x00229460 File Offset: 0x00227660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StageMergedInfo);
		}

		// Token: 0x0600CD6C RID: 52588 RVA: 0x00229470 File Offset: 0x00227670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StageMergedInfo other)
		{
			return other != null && (other == this || (this.ANLGJNNILPP == other.ANLGJNNILPP && this.LevelId == other.LevelId && this.stagePeriods_.Equals(other.stagePeriods_) && this.BINGAPCIEFO == other.BINGAPCIEFO && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CD6D RID: 52589 RVA: 0x002294E0 File Offset: 0x002276E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ANLGJNNILPP)
			{
				num ^= this.ANLGJNNILPP.GetHashCode();
			}
			if (this.LevelId != 0U)
			{
				num ^= this.LevelId.GetHashCode();
			}
			num ^= this.stagePeriods_.GetHashCode();
			if (this.BINGAPCIEFO)
			{
				num ^= this.BINGAPCIEFO.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CD6E RID: 52590 RVA: 0x0022955F File Offset: 0x0022775F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CD6F RID: 52591 RVA: 0x00229567 File Offset: 0x00227767
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CD70 RID: 52592 RVA: 0x00229570 File Offset: 0x00227770
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.LevelId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.LevelId);
			}
			if (this.ANLGJNNILPP)
			{
				output.WriteRawTag(56);
				output.WriteBool(this.ANLGJNNILPP);
			}
			if (this.BINGAPCIEFO)
			{
				output.WriteRawTag(80);
				output.WriteBool(this.BINGAPCIEFO);
			}
			this.stagePeriods_.WriteTo(ref output, StageMergedInfo._repeated_stagePeriods_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CD71 RID: 52593 RVA: 0x002295F8 File Offset: 0x002277F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ANLGJNNILPP)
			{
				num += 2;
			}
			if (this.LevelId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LevelId);
			}
			num += this.stagePeriods_.CalculateSize(StageMergedInfo._repeated_stagePeriods_codec);
			if (this.BINGAPCIEFO)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CD72 RID: 52594 RVA: 0x00229664 File Offset: 0x00227864
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StageMergedInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ANLGJNNILPP)
			{
				this.ANLGJNNILPP = other.ANLGJNNILPP;
			}
			if (other.LevelId != 0U)
			{
				this.LevelId = other.LevelId;
			}
			this.stagePeriods_.Add(other.stagePeriods_);
			if (other.BINGAPCIEFO)
			{
				this.BINGAPCIEFO = other.BINGAPCIEFO;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CD73 RID: 52595 RVA: 0x002296D9 File Offset: 0x002278D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CD74 RID: 52596 RVA: 0x002296E4 File Offset: 0x002278E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 32U)
					{
						this.LevelId = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.ANLGJNNILPP = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.BINGAPCIEFO = input.ReadBool();
						continue;
					}
					if (num == 120U || num == 122U)
					{
						this.stagePeriods_.AddEntriesFrom(ref input, StageMergedInfo._repeated_stagePeriods_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005264 RID: 21092
		private static readonly MessageParser<StageMergedInfo> _parser = new MessageParser<StageMergedInfo>(() => new StageMergedInfo());

		// Token: 0x04005265 RID: 21093
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005266 RID: 21094
		public const int ANLGJNNILPPFieldNumber = 7;

		// Token: 0x04005267 RID: 21095
		private bool aNLGJNNILPP_;

		// Token: 0x04005268 RID: 21096
		public const int LevelIdFieldNumber = 4;

		// Token: 0x04005269 RID: 21097
		private uint levelId_;

		// Token: 0x0400526A RID: 21098
		public const int StagePeriodsFieldNumber = 15;

		// Token: 0x0400526B RID: 21099
		private static readonly FieldCodec<uint> _repeated_stagePeriods_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x0400526C RID: 21100
		private readonly RepeatedField<uint> stagePeriods_ = new RepeatedField<uint>();

		// Token: 0x0400526D RID: 21101
		public const int BINGAPCIEFOFieldNumber = 10;

		// Token: 0x0400526E RID: 21102
		private bool bINGAPCIEFO_;
	}
}
